<%@ page language="java" import="weaver.conn.RecordSet" pageEncoding="UTF-8"%>
<%@page import="weaver.docs.docs.DocComInfo"%>
<%@page import="weaver.docs.docs.DocManager"%>
<%@page import="weaver.docs.docs.ShareManageDocOperation"%>
<%@page import="weaver.general.Util"%>

<%
RecordSet rs = new RecordSet();
RecordSet rs1 = new RecordSet();
//String p_requestid = Util.null2String(request.getParameter("p_requestid"));
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>test</title>

  </head>
  <%
  	
  	//拷贝或者移动之后,文档的权限会跟随新目录的默认共享
  	//拷贝或者移动之后,文档的权限会跟随新目录的默认共享
  	//拷贝或者移动之后,文档的权限会跟随新目录的默认共享
  	
	DocComInfo dci = new DocComInfo();
	//指定文档的id:8
	String subject=Util.null2String(dci.getDocname("8"));
	//如果目标子目录允许文件名重复
	DocManager docManager = new DocManager();
	//指定文档的id:8
	docManager.setId(8);
	docManager.setUserid(1);
	docManager.setDoccreaterid(1);
	docManager.setUsertype("0");
	docManager.setDocsubject(subject);
	docManager.setClientAddress("");
	docManager.setMaincategory(0);
	docManager.setSubcategory(0);
	//指定需要拷贝或者移动到的目录id:5
	docManager.setSeccategory(5);
	
	docManager.setCustomDataIdMapping(null);
	
	docManager.moveDoc();
	//docManager.copyDoc();
	ShareManageDocOperation manager = new ShareManageDocOperation();
	//指定需要拷贝或者移动到的目录id:5;指定文档的id:8
	manager.copyMoveDocShareBySec(5,8);
	
%>

<head>
<script type="text/javascript">
//

</script>
</head>
  <body>

  </body>
</html>
